package sg.edu.nus.iss.jass.datastore;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * <p>This class is a DTO for the purpose of keeping id information for all DTO objects</p>
 * All these information will be stored in storage same as other DTO objects.
 * 
 * @author WANG DAYONG
 *
 */
public class IDGenerater extends BaseDTO implements Map {

	private static final long serialVersionUID = -7341898916563764444L;

	/**
	 * The container to store id information.
	 */
	private Map container = new HashMap();

	@Override
	public String toString() {

		return "IDGenerater [map="+super.toString()+"]";
	}

	@Override
	public void clear() {

		this.container.clear();

	}

	@Override
	public boolean containsKey(Object key) {

		return this.container.containsKey(key);
	}

	@Override
	public boolean containsValue(Object value) {

		return this.container.containsValue(value);
	}

	@Override
	public Set entrySet() {

		return this.container.entrySet();
	}

	@Override
	public Object get(Object key) {

		return this.container.get(key);
	}

	@Override
	public boolean isEmpty() {

		return this.container.isEmpty();
	}

	@Override
	public Set keySet() {

		return this.container.keySet();
	}

	@Override
	public Object put(Object key, Object value) {

		return this.container.put(key, value);
	}

	@Override
	public void putAll(Map m) {

		this.container.putAll(m);

	}

	@Override
	public Object remove(Object key) {

		return this.container.remove(key);
	}

	@Override
	public int size() {

		return 0;
	}

	@Override
	public Collection values() {

		return this.container.values();
	}
}
